package ScriptsGenericos
{
	import mx.formatters.SwitchSymbolFormatter;
	
	public class Puntaje_a_Nota
	{
		private var _nota:Number = 0.0;
		private var _ptje:Number = 0.0;
		
		public function Puntaje_a_Nota(p:Number)
		{
			this._ptje = p;
		}
			
		public function nota():Number
		{
			switch(this._ptje)
			{
				case 5:
					this._nota = 7.0;
					break;
				case 4.9:
					this._nota = 6.8;
					break;
				case 4.8:
					this._nota = 6.7;
					break;
				case 4.7:
					this._nota = 6.5;
					break;
				case 4.6:
					this._nota = 6.4;
					break;
				case 4.5:
					this._nota = 6.2;
					break;
				case 4.4:
					this._nota = 6.1;
					break;
				case 4.3:
					this._nota = 5.9;
					break;
				case 4.2:
					this._nota = 5.8;
					break;
				case 4.1:
					this._nota = 5.6;
					break;
				case 4:
					this._nota = 5.5;
					break;
				case 3.9:
					this._nota = 5.3;
					break;
				case 3.8:
					this._nota = 5.2;
					break;
				case 3.7:
					this._nota = 5.0;
					break;
				case 3.6:
					this._nota = 4.9;
					break;
				case 3.5:
					this._nota = 4.7;
					break;
				case 3.4:
					this._nota = 4.6;
					break;
				case 3.3:
					this._nota = 4.4;
					break;
				case 3.2:
					this._nota = 4.3;
					break;
				case 3.1:
					this._nota = 4.1;
					break;
				case 3:
					this._nota = 4.0;
					break;
				case 2.9:
					this._nota = 3.8;
					break;
				case 2.8:
					this._nota = 3.7;
					break;
				case 2.7:
					this._nota = 3.5;
					break;
				case 2.6:
					this._nota = 3.4;
					break;
				case 2.5:
					this._nota = 3.2;
					break;
				case 2.4:
					this._nota = 3.1;
					break;
				case 2.3:
					this._nota = 2.9;
					break;
				case 2.2:
					this._nota = 2.8;
					break;
				case 2.1:
					this._nota = 2.6;
					break;
				case 2:
					this._nota = 2.5;
					break;
				case 1.9:
					this._nota = 2.3;
					break;
				case 1.8:
					this._nota = 2.2;
					break;
				case 1.7:
					this._nota = 2.0;
					break;
				case 1.6:
					this._nota = 1.9;
					break;
				case 1.5:
					this._nota = 1.7;
					break;
				case 1.4:
					this._nota = 1.6;
					break;
				case 1.3:
					this._nota = 1.4;
					break;
				case 1.2:
					this._nota = 1.3;
					break;
				case 1.1:
					this._nota = 1.1;
					break;
				case 1:
					this._nota = 1.0;
					break;
			}
			return this._nota;
		}
	}
}